package C10_12_ReplaceConstructorWithFactoryMethod.example1.after_refactor;

public class Employee {
    private int _type;
    static final int ENGINEER = 0;
    static final int SALESMAN = 1;
    static final int MANAGER = 2;
    /**
     * 私有
     * @param type
     */
    private Employee(int type) {
        _type = type;
    }

    static Employee create(int type) {
        return new Employee(type);
    }
}
